#ifndef MUTEX_H_
#define MUTEX_H_


#endif /* MUTEX_H_ */

#include <tbb/tbb.h>

using namespace tbb;

typedef void * atomic_counter;

typedef struct struct_mutex{
	atomic_counter *flag;
	struct timespec *req;
	struct timespec *rem;
} Mutex;

Mutex *createMutex();

void destroyMutex(Mutex *m);

void mutexLock(Mutex *m);

void mutexUnlock(Mutex *m);
